package com.tencent.random01;
import java.util.Random;

/**
 * @author Mucd
 * @Date 2020/12/8/008
 * @ClassName Test
 */
public class Test {
    public static void main(String[] args){
        Random random = new Random();
        for(int i = 1;true;i++){
            int randomInt = random.nextInt();
            int ran2 = random.nextInt();
            System.out.println(randomInt);
            System.out.println(ran2);
            if (ran2 == randomInt){
                System.out.println(randomInt);
                System.out.println(ran2);
                break;
            }
        }
    }
}
